<?php
/**
 * Created by PhpStorm.
 * Author: ls
 * Time: 2023/9/28 9:22
 * Desc: 通用接口
 */
class Request_Api_V2_Common extends Request_Api_V2_Base
{
    public function __construct($request_param)
    {
        parent::__construct($request_param);

    }

    public function check_code_image()
    {
        $this->rules = [
            ['captcha_key', ['not_empty']],
            ['code', ['not_empty']],
        ];

        return $this;
    }

    public function send_msg_code()
    {
        $this->rules = [
            ['captcha_key', ['not_empty']],
            ['imgCode', ['not_empty']],
            ['phone', ['not_empty', 'phone']],
        ];

        return $this;
    }

    public function upload_img()
    {
        $this->rules = [
            ['imgstr', ['not_empty']]
        ];

        return $this;
    }

    public function upload_video()
    {
        $this->rules = [
            ['str', ['not_empty']]
        ];

        return $this;
    }


}